{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/nathankalmoe/Dropbox/Research/A Publishing/Finished/PoP - Facebook Protests/Replication files/PoP Survey Analysis.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Jan 2022, 15:41:10

{com}. do "/Users/nathankalmoe/Dropbox/Research/A Publishing/Finished/PoP - Facebook Protests/Replication files/Replication file - survey analysis.do"
{txt}
{com}. //Replication File - LA Survey 
. 
. use "/Users/nathankalmoe/Dropbox/Research/Old Other/PPRL/CommunityResilienceData Coded.dta", clear
{txt}
{com}. set more off
{txt}
{com}. 
. gen ageyrs=2016-age
{txt}(21 missing values generated)

{com}. 
. gen newscred=sb2
{txt}
{com}. recode newscred 1=1 2=.5 3 999 888=0 4=-.5 5=-1 else=.
{txt}(newscred: 905 changes made)

{com}. 
. *Table 2
. *Support protest (1=justified, 2=unjustified, 888=DK, 999=refused)
. tab r13 [aw=weight_metro], miss

        {txt}r13 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}168.3472398       46.63       46.63
{txt}          2 {c |}{res} 152.832417       42.34       88.97
{txt}        888 {c |}{res} 25.5217023        7.07       96.04
{txt}        999 {c |}{res} 14.2986409        3.96      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab r13 [aw=weight_state] if weight_metro==., miss

        {txt}r13 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 250.445034       34.88       34.88
{txt}          2 {c |}{res} 362.719958       50.52       85.40
{txt}        888 {c |}{res} 87.2197074       12.15       97.55
{txt}        999 {c |}{res}17.61530133        2.45      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. 
. *Police force on protesters (1=right amount, 2=use more, 3=use less, 888=DK, 999=refused)
. tab r14 [aw=weight_metro], miss

        {txt}r14 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 132.404029       36.68       36.68
{txt}          2 {c |}{res} 37.4783389       10.38       47.06
{txt}          3 {c |}{res} 151.274826       41.90       88.96
{txt}        888 {c |}{res} 34.3241478        9.51       98.47
{txt}        999 {c |}{res} 5.51865801        1.53      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab r14 [aw=weight_state] if weight_metro==., miss

        {txt}r14 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}  224.14779       31.22       31.22
{txt}          2 {c |}{res} 134.676751       18.76       49.98
{txt}          3 {c |}{res} 217.240551       30.26       80.23
{txt}        888 {c |}{res} 128.051708       17.83       98.07
{txt}        999 {c |}{res} 13.8832002        1.93      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. 
. *Racial equality (1=reached equality, 2=do more, 3=too far, 888=DK, 999=refused)
. tab r2 [aw=weight_metro], miss

         {txt}r2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 107.019297       29.65       29.65
{txt}          2 {c |}{res} 192.176168       53.23       82.88
{txt}          3 {c |}{res} 41.2856702       11.44       94.32
{txt}        888 {c |}{res} 10.8993605        3.02       97.34
{txt}        999 {c |}{res}9.619504501        2.66      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab r2 [aw=weight_state] if weight_metro==., miss

         {txt}r2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res}195.1931977       27.19       27.19
{txt}          2 {c |}{res} 361.640556       50.37       77.55
{txt}          3 {c |}{res} 113.648925       15.83       93.38
{txt}        888 {c |}{res} 23.4001969        3.26       96.64
{txt}        999 {c |}{res} 24.1171243        3.36      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. 
. *News credibility (1/2=def/prob yes, 3=maybe, 4/5=prob/def not, 888=DK, 999=refused)
. tab sb2 [aw=weight_metro], miss

        {txt}sb2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 69.8677034       19.35       19.35
{txt}          2 {c |}{res} 75.7103477       20.97       40.33
{txt}          3 {c |}{res} 58.6234045       16.24       56.57
{txt}          4 {c |}{res} 55.5574628       15.39       71.96
{txt}          5 {c |}{res} 84.4020501       23.38       95.34
{txt}        888 {c |}{res} 14.6412681        4.06       99.39
{txt}        999 {c |}{res} 2.19776332        0.61      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab sb2 [aw=weight_state] if weight_metro==., miss

        {txt}sb2 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 114.653855       15.97       15.97
{txt}          2 {c |}{res} 119.410429       16.63       32.60
{txt}          3 {c |}{res} 119.167479       16.60       49.20
{txt}          4 {c |}{res}  112.57914       15.68       64.88
{txt}          5 {c |}{res} 182.766504       25.45       90.33
{txt}        888 {c |}{res} 61.6309213        8.58       98.91
{txt}        999 {c |}{res} 7.79167256        1.09      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. 
. *Table 3
. tab protestOK [aw=weight_metro] if white==1 & protestOK~=.5

  {txt}protestOK {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 112.001248       57.14       57.14
{txt}          1 {c |}{res}  83.998752       42.86      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        196      100.00
{txt}
{com}. tab protestOK [aw=weight_metro] if black==1 & protestOK~=.5

  {txt}protestOK {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 26.5287013       30.85       30.85
{txt}          1 {c |}{res} 59.4712987       69.15      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}         86      100.00
{txt}
{com}. 
. tab polforce [aw=weight_metro] if white==1

   {txt}polforce {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         -1 {c |}{res} 47.1698586       21.34       21.34
{txt}          0 {c |}{res} 140.683297       63.66       85.00
{txt}          1 {c |}{res} 33.1468447       15.00      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        221      100.00
{txt}
{com}. tab polforce [aw=weight_metro] if black==1

   {txt}polforce {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         -1 {c |}{res} 73.1751041       80.41       80.41
{txt}          0 {c |}{res}  16.493632       18.12       98.54
{txt}          1 {c |}{res} 1.33126397        1.46      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}         91      100.00
{txt}
{com}. 
. tab blkequal [aw=weight_metro] if white==1

   {txt}blkequal {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         -1 {c |}{res}  34.808998       15.82       15.82
{txt}          0 {c |}{res} 101.832466       46.29       62.11
{txt}          1 {c |}{res} 83.3585356       37.89      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        220      100.00
{txt}
{com}. tab blkequal [aw=weight_metro] if black==1

   {txt}blkequal {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         -1 {c |}{res} 2.85480604        3.10        3.10
{txt}          0 {c |}{res} 10.3964088       11.30       14.40
{txt}          1 {c |}{res} 78.7487851       85.60      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}         92      100.00
{txt}
{com}. 
. tab newscred [aw=weight_metro] if white==1 

   {txt}newscred {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         -1 {c |}{res} 61.9546077       27.41       27.41
{txt}        -.5 {c |}{res} 38.8001145       17.17       44.58
{txt}          0 {c |}{res} 44.0382621       19.49       64.07
{txt}         .5 {c |}{res} 48.7589055       21.57       85.64
{txt}          1 {c |}{res} 32.4481102       14.36      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        226      100.00
{txt}
{com}. tab newscred [aw=weight_metro] if black==1

   {txt}newscred {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         -1 {c |}{res} 13.9669267       15.18       15.18
{txt}        -.5 {c |}{res} 11.4064086       12.40       27.58
{txt}          0 {c |}{res} 20.1713369       21.93       49.51
{txt}         .5 {c |}{res} 20.1794015       21.93       71.44
{txt}          1 {c |}{res} 26.2759264       28.56      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}         92      100.00
{txt}
{com}. 
. *Appendix analysis on survey demographics
. tab black [aw=weight_state] if weight_metro==.

      {txt}black {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 511.139147       71.19       71.19
{txt}          1 {c |}{res} 206.860853       28.81      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. tab black [aw=weight_metro] 

      {txt}black {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 238.116079       65.96       65.96
{txt}          1 {c |}{res} 122.883921       34.04      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab white [aw=weight_state] if weight_metro==.

      {txt}white {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 248.847279       34.66       34.66
{txt}          1 {c |}{res} 469.152721       65.34      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. tab white [aw=weight_metro] 

      {txt}white {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 145.503846       40.31       40.31
{txt}          1 {c |}{res} 215.496154       59.69      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab fem [aw=weight_state] if weight_metro==.

        {txt}fem {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 315.604669       43.96       43.96
{txt}          1 {c |}{res} 402.395331       56.04      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        718      100.00
{txt}
{com}. tab fem [aw=weight_metro] 

        {txt}fem {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 171.868053       47.61       47.61
{txt}          1 {c |}{res} 189.131947       52.39      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        361      100.00
{txt}
{com}. tab ageyrs [aw=weight_state] if weight_metro==.

     {txt}ageyrs {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         18 {c |}{res} 8.26933083        1.17        1.17
{txt}         19 {c |}{res}   12.55961        1.78        2.96
{txt}         20 {c |}{res} 14.0283028        1.99        4.95
{txt}         21 {c |}{res} 10.1443426        1.44        6.39
{txt}         22 {c |}{res} 9.11030618        1.29        7.69
{txt}         23 {c |}{res}  3.9310929        0.56        8.24
{txt}         24 {c |}{res} 13.4853262        1.92       10.16
{txt}         25 {c |}{res} 9.46428102        1.34       11.50
{txt}         26 {c |}{res} 15.3623122        2.18       13.69
{txt}         27 {c |}{res} 7.24171064        1.03       14.72
{txt}         28 {c |}{res} 15.5309352        2.21       16.92
{txt}         29 {c |}{res}8.529411941        1.21       18.13
{txt}         30 {c |}{res} 10.7605369        1.53       19.66
{txt}         31 {c |}{res} 13.4975939        1.92       21.58
{txt}         32 {c |}{res} 13.9461206        1.98       23.56
{txt}         33 {c |}{res} 9.20096012        1.31       24.87
{txt}         34 {c |}{res} 15.2388481        2.16       27.03
{txt}         35 {c |}{res} 16.1882785        2.30       29.33
{txt}         36 {c |}{res} 11.4698024        1.63       30.96
{txt}         37 {c |}{res} 10.8481264        1.54       32.50
{txt}         38 {c |}{res} 13.3918371        1.90       34.40
{txt}         39 {c |}{res} 4.67978925        0.66       35.07
{txt}         40 {c |}{res}  12.600908        1.79       36.86
{txt}         41 {c |}{res} 12.0814911        1.72       38.57
{txt}         42 {c |}{res} 7.54755955        1.07       39.65
{txt}         43 {c |}{res} 10.3558544        1.47       41.12
{txt}         44 {c |}{res}12.57439001        1.79       42.90
{txt}         45 {c |}{res} 13.6189971        1.93       44.84
{txt}         46 {c |}{res} 14.9672945        2.13       46.96
{txt}         47 {c |}{res} 17.8780482        2.54       49.50
{txt}         48 {c |}{res} 13.3456681        1.90       51.40
{txt}         49 {c |}{res} 9.84464665        1.40       52.80
{txt}         50 {c |}{res} 5.17045902        0.73       53.53
{txt}         51 {c |}{res}  8.3727529        1.19       54.72
{txt}         52 {c |}{res}20.38352497        2.90       57.62
{txt}         53 {c |}{res} 11.9510426        1.70       59.31
{txt}         54 {c |}{res} 12.5090442        1.78       61.09
{txt}         55 {c |}{res}  13.836302        1.97       63.06
{txt}         56 {c |}{res} 17.8677371        2.54       65.59
{txt}         57 {c |}{res} 14.8858376        2.11       67.71
{txt}         58 {c |}{res} 11.7463315        1.67       69.38
{txt}         59 {c |}{res} 13.9304102        1.98       71.36
{txt}         60 {c |}{res} 14.2447242        2.02       73.38
{txt}         61 {c |}{res} 11.1132929        1.58       74.96
{txt}         62 {c |}{res} 11.3391385        1.61       76.57
{txt}         63 {c |}{res}  11.305784        1.61       78.17
{txt}         64 {c |}{res} 10.4281465        1.48       79.66
{txt}         65 {c |}{res} 8.50174678        1.21       80.86
{txt}         66 {c |}{res} 10.3540291        1.47       82.33
{txt}         67 {c |}{res} 8.67323358        1.23       83.57
{txt}         68 {c |}{res} 8.85891858        1.26       84.82
{txt}         69 {c |}{res} 10.0104143        1.42       86.25
{txt}         70 {c |}{res} 5.81079418        0.83       87.07
{txt}         71 {c |}{res} 9.52849333        1.35       88.43
{txt}         72 {c |}{res} 10.6819483        1.52       89.94
{txt}         73 {c |}{res}4.141843392        0.59       90.53
{txt}         74 {c |}{res} 9.84384031        1.40       91.93
{txt}         75 {c |}{res} 8.35090957        1.19       93.12
{txt}         76 {c |}{res} 10.2164469        1.45       94.57
{txt}         77 {c |}{res} 6.29308349        0.89       95.46
{txt}         78 {c |}{res} 5.45347908        0.77       96.24
{txt}         79 {c |}{res} 3.84124088        0.55       96.78
{txt}         80 {c |}{res} 1.46990878        0.21       96.99
{txt}         81 {c |}{res} 1.33139724        0.19       97.18
{txt}         82 {c |}{res} 3.19694741        0.45       97.63
{txt}         83 {c |}{res}3.346394496        0.48       98.11
{txt}         84 {c |}{res} 3.63992227        0.52       98.63
{txt}         85 {c |}{res} 3.71495676        0.53       99.15
{txt}         86 {c |}{res} .511406241        0.07       99.23
{txt}         87 {c |}{res} 2.20475232        0.31       99.54
{txt}         88 {c |}{res} .391414359        0.06       99.59
{txt}         89 {c |}{res}    1.21412        0.17       99.77
{txt}         94 {c |}{res}  1.1150348        0.16       99.93
{txt}         96 {c |}{res} .525082088        0.07      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        704      100.00
{txt}
{com}. tab ageyrs [aw=weight_metro] 

     {txt}ageyrs {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
         18 {c |}{res} 11.8568769        3.35        3.35
{txt}         19 {c |}{res}  12.288306        3.47        6.82
{txt}         20 {c |}{res} 7.18734377        2.03        8.85
{txt}         21 {c |}{res} 9.79846084        2.77       11.62
{txt}         22 {c |}{res} 4.89468784        1.38       13.00
{txt}         23 {c |}{res} .743373019        0.21       13.21
{txt}         24 {c |}{res} 10.5043619        2.97       16.18
{txt}         25 {c |}{res} 5.38811158        1.52       17.70
{txt}         26 {c |}{res} 13.2128545        3.73       21.43
{txt}         27 {c |}{res} 6.05092131        1.71       23.14
{txt}         28 {c |}{res} 9.33201775        2.64       25.78
{txt}         29 {c |}{res} 3.21995934        0.91       26.69
{txt}         30 {c |}{res} 2.93942383        0.83       27.52
{txt}         31 {c |}{res} 9.38226397        2.65       30.17
{txt}         32 {c |}{res} 8.72034407        2.46       32.63
{txt}         33 {c |}{res} 3.97064745        1.12       33.75
{txt}         34 {c |}{res} 6.92482432        1.96       35.71
{txt}         35 {c |}{res} 10.9850591        3.10       38.81
{txt}         36 {c |}{res} 5.74685029        1.62       40.44
{txt}         37 {c |}{res}.5563199638        0.16       40.59
{txt}         38 {c |}{res}8.513855641        2.41       43.00
{txt}         39 {c |}{res} 3.80892525        1.08       44.08
{txt}         40 {c |}{res} 6.71300019        1.90       45.97
{txt}         41 {c |}{res} 5.62045864        1.59       47.56
{txt}         42 {c |}{res} 5.02026604        1.42       48.98
{txt}         43 {c |}{res} 8.23727775        2.33       51.30
{txt}         44 {c |}{res} 4.96998171        1.40       52.71
{txt}         45 {c |}{res} 4.07488484        1.15       53.86
{txt}         46 {c |}{res} 4.15155724        1.17       55.03
{txt}         47 {c |}{res}4.511641123        1.27       56.31
{txt}         48 {c |}{res} 2.69462117        0.76       57.07
{txt}         49 {c |}{res} 8.68152089        2.45       59.52
{txt}         50 {c |}{res} 6.21135547        1.75       61.27
{txt}         51 {c |}{res} 7.36299739        2.08       63.35
{txt}         52 {c |}{res} 8.87621473        2.51       65.86
{txt}         53 {c |}{res} 5.18883636        1.47       67.33
{txt}         54 {c |}{res}8.832023506        2.49       69.82
{txt}         55 {c |}{res} 4.69459031        1.33       71.15
{txt}         56 {c |}{res}   11.92525        3.37       74.52
{txt}         57 {c |}{res} 8.25188582        2.33       76.85
{txt}         58 {c |}{res} 4.48812276        1.27       78.12
{txt}         59 {c |}{res} 8.50342293        2.40       80.52
{txt}         60 {c |}{res}  2.9471125        0.83       81.35
{txt}         61 {c |}{res} 4.88322117        1.38       82.73
{txt}         62 {c |}{res} 3.66752953        1.04       83.77
{txt}         63 {c |}{res} 1.00487658        0.28       84.05
{txt}         64 {c |}{res} 4.26881176        1.21       85.26
{txt}         65 {c |}{res} 4.26501167        1.20       86.46
{txt}         66 {c |}{res} 2.70305664        0.76       87.22
{txt}         67 {c |}{res}  6.9378767        1.96       89.18
{txt}         68 {c |}{res}  1.7204922        0.49       89.67
{txt}         69 {c |}{res} 2.00842971        0.57       90.24
{txt}         70 {c |}{res} 8.70837974        2.46       92.70
{txt}         71 {c |}{res} 1.87853273        0.53       93.23
{txt}         72 {c |}{res}  3.4007501        0.96       94.19
{txt}         73 {c |}{res} 4.24538496        1.20       95.39
{txt}         74 {c |}{res}  .77578749        0.22       95.61
{txt}         75 {c |}{res} 1.74514051        0.49       96.10
{txt}         76 {c |}{res} 2.00702369        0.57       96.67
{txt}         77 {c |}{res}  2.5404408        0.72       97.39
{txt}         78 {c |}{res}  1.4018302        0.40       97.78
{txt}         79 {c |}{res} .515031666        0.15       97.93
{txt}         80 {c |}{res} 1.16013876        0.33       98.25
{txt}         81 {c |}{res} .618362267        0.17       98.43
{txt}         82 {c |}{res} .686807252        0.19       98.62
{txt}         83 {c |}{res} 1.00546401        0.28       98.91
{txt}         84 {c |}{res} .384282986        0.11       99.02
{txt}         85 {c |}{res} .353782048        0.10       99.12
{txt}         87 {c |}{res}1.680223218        0.47       99.59
{txt}         88 {c |}{res} .362260113        0.10       99.69
{txt}         92 {c |}{res} .625103266        0.18       99.87
{txt}         95 {c |}{res} .463158263        0.13      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        354      100.00
{txt}
{com}. *1=college grad
. tab edu4 [aw=weight_state] if weight_metro==.

       {txt}edu4 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 63.3308565       11.66       11.66
{txt}       .334 {c |}{res} 221.202104       40.74       52.40
{txt}        .67 {c |}{res} 74.8216642       13.78       66.18
{txt}          1 {c |}{res} 183.645375       33.82      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        543      100.00
{txt}
{com}. tab edu4 [aw=weight_metro] 

       {txt}edu4 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res} 37.7259853       14.85       14.85
{txt}       .334 {c |}{res} 97.6505134       38.45       53.30
{txt}        .67 {c |}{res} 20.1803202        7.95       61.24
{txt}          1 {c |}{res} 98.4431811       38.76      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        254      100.00
{txt}
{com}. *1-4 is <35k, 5-7 <100k, 
. tab income [aw=weight_state] if weight_metro==. & income<=10

     {txt}income {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 50.9922867        8.60        8.60
{txt}          2 {c |}{res} 36.4426772        6.15       14.74
{txt}          3 {c |}{res} 63.5831066       10.72       25.47
{txt}          4 {c |}{res} 65.8153605       11.10       36.57
{txt}          5 {c |}{res}87.09582111       14.69       51.25
{txt}          6 {c |}{res} 102.143463       17.22       68.48
{txt}          7 {c |}{res} 73.3176589       12.36       80.84
{txt}          8 {c |}{res}68.44642465       11.54       92.38
{txt}          9 {c |}{res} 23.5915011        3.98       96.36
{txt}         10 {c |}{res}    21.5717        3.64      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        593      100.00
{txt}
{com}. tab income [aw=weight_metro] if income<=10

     {txt}income {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          1 {c |}{res} 24.0974136        8.25        8.25
{txt}          2 {c |}{res} 13.9834122        4.79       13.04
{txt}          3 {c |}{res} 28.0187466        9.60       22.64
{txt}          4 {c |}{res} 31.2250558       10.69       33.33
{txt}          5 {c |}{res} 33.8166385       11.58       44.91
{txt}          6 {c |}{res} 48.3278925       16.55       61.46
{txt}          7 {c |}{res} 39.6260853       13.57       75.03
{txt}          8 {c |}{res} 45.4078939       15.55       90.58
{txt}          9 {c |}{res} 15.2160421        5.21       95.79
{txt}         10 {c |}{res}12.28081945        4.21      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}        292      100.00
{txt}
{com}. 
. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/nathankalmoe/Dropbox/Research/A Publishing/Finished/PoP - Facebook Protests/Replication files/PoP Survey Analysis.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Jan 2022, 15:41:24
{txt}{.-}
{smcl}
{txt}{sf}{ul off}